<?php

use Drupal\shusy_store_order_line\Entity\ShusyStoreOrderLine;

function shusy_store_order_line_shusy_store_order_line_add_page() {
  $e = new ShusyStoreOrderLine();
  module_load_include('inc', 'shusy_store_order_line', 'shusy_store_order_line.forms');
  return drupal_get_form('shusy_store_order_line_shusy_store_order_line_entity_form', $e, 'add');
}

function shusy_store_order_line_shusy_store_order_line_view_page(ShusyStoreOrderLine $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_store_order_line_shusy_store_order_line_edit_page(ShusyStoreOrderLine $e) {
  module_load_include('inc', 'shusy_store_order_line', 'shusy_store_order_line.forms');
  return drupal_get_form('shusy_store_order_line_shusy_store_order_line_entity_form', $e, 'edit');
}

function shusy_store_order_line_shusy_store_order_line_delete_page(ShusyStoreOrderLine $e) {
  module_load_include('inc', 'shusy_store_order_line', 'shusy_store_order_line.forms');
  return drupal_get_form('shusy_store_order_line_shusy_store_order_line_delete_form', $e);
}

